{#{% extends "base3-left.html" %}#}
{#{% load staticfiles %}#}
{##}
{#{% block title %}医院评审管理系统{% endblock %}#}
{##}
{#{% block content %}#}
{% extends "base2-head-footer.html" %}
{% load staticfiles %}
{% load mytags %}

{% block middle %}

{#    <section class="content-header">#}
{#      <h1>#}
{#        标准管理#}
{#      </h1>#}
{#      <ol class="breadcrumb">#}
{#        <li><a href="#"><i class="fa fa-dashboard"></i> 评审系统</a></li>#}
{#        <li><a href="{% url 'system' %}">标准管理</a></li>#}
{#      </ol>#}
{#    </section>#}

{#    <div class="pad margin no-print">#}
{#      <div class="callout callout-info" style="margin-bottom: 0!important;">#}
{#        <h4><i class="fa  fa-info-circle"></i> 提示信息:</h4>#}
{#        标准管理模块用于查看标准条款（标准要点、参考资料）、编辑参考资料等.#}
{#      </div>#}

</div>

    <!-- Main content -->

          <div id="docs-body" class="container">

        <div class="page-header">
            <h2>
                三级综合医院评审标准<small>（2011版）</small>
            </h2>
        </div>
        <div id="lookup-page">

            <div class="row">

                <div class="criteria-nav col-md-12">
                                    <ul class="l1list nav nav-pills mg-b-15">
                        {% for item in level1_all %}
                            <li
                                {% if item.id == clause_parent.id %}
                        class="active"
                        {% endif %}
                        >
                            <a href="/criterion_view/{{ item.id }}"><i class="icon-tags"></i>{{ item.desc }}</a>
                        </li>
                        {% endfor %}

                    </ul>
<hr>
                    <ul class="l2list nav nav-pills">
                        {% for l2_item in level2_all %}
                        <li
                                {% if l2_item.id == clause_now.id %}
                        class="active"
                        {% endif %}
                        >
                            <a href="/criterion_view/{{ l2_item.id }}"><i class="icon-bookmark"></i> {{ l2_item.desc }}</a>
                        </li>
                        {% endfor %}
                    </ul>
<hr>

                </div>

            </div>
{% for l3_item in level3_all %}
            <div class="l3item">
                <h4>
                    {{ l3_item.name }} {{ l3_item.desc }}
                </h4>
 {# 判断是否有四级节点,如果有四级节点则显示四级节点，四级节点下显示叶子节点  #}

            {% if l3_item.id|get_level4_clause %}
                {% for l4_item in l3_item.id|get_level4_clause %}
                    <h5>
                    {{ l4_item.name }} {{ l4_item.desc }}
                </h5>
                     {% for l6_item in l4_item.id|get_level6_clause %}
                         {% show_keys_and_refs l6_item.id is_superuser %}
                     {% endfor %}
                {% endfor %}
            {% else %}  {# 如果下面没有四级节点,直接显示叶子节点  #}
                {% for l6_item in l3_item.id|get_level6_clause %}
                  {% show_keys_and_refs l6_item.id is_superuser %}
                {% endfor %}

            {% endif %}
            </div>
{% endfor %}

        </div>


    </div>


{% endblock %}
{% block javascripts %}
<script src="/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/static/dist/js/app.min.js"></script>
<script src="/static/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="/static/plugins/datatables/dataTables.const.js"></script>
<script src="/static/js/plugins/layer/layer.js"></script>
<script type="text/javascript">
function doUpdate(clause_id,ref_type){
	layer.open({
		type : 2,
		title : '编辑参考资料',
		shadeClose : false,
    	maxmin : true,
		area : [ '850px', '600px' ],
		content : [ "{% url 'criterion-reference' %}"+'?clause_id='+clause_id+'&ref_type='+ref_type, 'no' ],
{#		content : [ "{% url '/xadmin/criterion/reviewreference/5/update/' %}"+'?id='+id, 'no' ],#}
		end : function() {
{#			oDataTable.ajax.reload();#}
			window.location.reload();
		}
	});
}
</script>
{% endblock %}

   {% block footer %}
    <!-- Main Footer -->
    <footer class="text-center">
        <strong>
          {% if system_setup.copyright %}
              {{ system_setup.copyright }}
          {% else %}
              Copyright © 2019-2020 北京香山国士管理咨询服务有限公司. Version1.0.0
          {% endif %}
        </strong>
        技术支持：<a href="">香山国士</a>
    </footer>
 {% endblock %}
